<?php

namespace Yolo\Rpc\Annotations;

use Attribute;
use Yolo\Rpc\Enums\HttpMethod;

/**
 * 将一个方法标记为 Restful 接口
 */
#[Attribute(Attribute::TARGET_METHOD)]
class Restful
{
    public function __construct(public HttpMethod $method, public string $path, public array $options = [])
    {
    }
}
